/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
     margin-top: 0;
}

/* 头部样式 */
header {
    height: 140px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 0;
    top: 0;
    position: sticky;
}

header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    margin: 5px 0;
}

/* 导航栏样式 */
nav {
    background-color: #333;
    color: white;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
   
}

nav ul li a:hover {
    color: #a8e6cf;
}

/* 主体内容样式 */
main {
    margin: 0 auto;
    margin-top: 40px; 
}

section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
   
}


section h2 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 10px;
}

section p {
    color: #333;
    line-height: 1.6;
}

/* 参赛选手样式 */
.participant-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.participant {
    display: flex;
    align-items: center;
}

.participant img {
    width: 100px;
   
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

table th {
    background-color: #4CAF50;
    color: white;
}

table tbody tr:hover {
    background-color: #f0fdf4;
    transition: background-color 0.3s ease;
}

/* 底部样式 */
footer {
    width: 100%;
    height: 500px;
    margin-top: 25px; /* 为页脚上方添加 40px 的留白 */
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    top: 80%; 
}

footer p {
    margin: 5px 0;
}  
section p {
    text-indent: 2em;
}

